﻿using System.Data.Entity;

using Flagwind.Database.Builder.Mappings;

namespace Flagwind.Database.Builder
{
    public class DataContext : DbContext
    {
        #region 构造方法

        public DataContext() : base("Flagwind")
        {
        }

        #endregion

        #region 重写方法

        protected override void OnModelCreating(DbModelBuilder builder)
        {
            builder.Configurations.Add(new UserMapping());
        }

		#endregion
	}
}